package io.adrainty.gbatis.util;

import lombok.SneakyThrows;

import java.io.Closeable;
import java.util.Objects;

/**
 * @author adrainty
 * @version v1.0.0
 * @since 2024/1/14 21:21
 */
public class IOUtil {

    private IOUtil() {}

    @SneakyThrows
    public static void close(Closeable io) {
        if (Objects.isNull(io)) return;
        io.close();
    }

}
